package com.shteo.crmd.admin;

import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * Created by Akuma on 16/9/28.
 */
//开启服务注册与发现
@EnableDiscoveryClient
@SpringBootApplication
public class CRMAdminServiceApp implements CommandLineRunner{

    public static void main(String[] args) throws Exception{
        SpringApplication app = new SpringApplication(CRMAdminServiceApp.class);
        app.run(args);
    }

    //程序首次启动调用
    public void run(String... strings) throws Exception {
        System.out.println("CRM Server Boot Successfully");
    }
}
